package com.woniu.order.client;

import com.woniu.model.Result;
import com.woniu.order.cliententity.entity.Employee;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "staff-server",path = "/staff")
public interface EmployeeClient {

    /**
     * 根据员工id查询员工实体
     * id 员工id
     */
    @GetMapping("/employee/byId/{id}")
    @ApiOperation("根据账号id查询员工实体")
    Result<Employee> byId(@PathVariable("id") Integer id);
}
